package com.itheima.mall.pojo.sms;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "sms_coupon")
public class Coupon implements Serializable {

    private Long id;
     //优惠券类型；0->全场赠券；1->会员赠券；2->购物赠券；3->注册赠券
    private Integer type;
    private String name;
    //使用平台：0->全部；1->移动；2->PC
    private Integer platform;
    //数量
    private Integer count;
    //金额
    private BigDecimal amount;
    //每人限领张数
    private Integer perLimit;
    //使用门槛；0表示无门槛
    private BigDecimal minPoint;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    //使用类型：0->全场通用；1->指定分类；2->指定商品
    private Integer useType;
     //备注
    private String note;
    //发行数量
    private Integer publishCount;
    //已使用数量
    private Integer useCount;
    //领取数量
    private Integer receiveCount;
    //可以领取的日期
    private LocalDateTime enableTime;
    //优惠码
    private String code;
    //可领取的会员类型：0->无限时
    private Integer memberLevel;

}
